package cn.ejopenai.domain;


import java.util.List;
/**
 * author ： willie
 * 请求体数据封装
 */
//  {"model": "gpt-3.5-turbo","messages": [{ "role": "user", "content": "who are you" }]}
public class RequestObject {
    private String model;
    private List<MessageObject> messages;
    private int max_tokens;
    public RequestObject() {
    }

    public RequestObject(String model, List<MessageObject> messages, int max_tokens) {
        this.model = model;
        this.messages = messages;
        this.max_tokens = max_tokens;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public List<MessageObject> getMessages() {
        return messages;
    }

    public void setMessages(List<MessageObject> messages) {
        this.messages = messages;
    }

    public int getMax_tokens() {
        return max_tokens;
    }

    public void setMax_tokens(int max_tokens) {
        this.max_tokens = max_tokens;
    }
}
